package com.yequan.designpattern.strategy.one;

/**
 * @author yq
 * @date 2020/09/27
 */
public class ExeExecutorTask implements Runnable {

    private ExeHandle exeHandle;

    private ExeVo exeVo;

    public ExeExecutorTask(ExeHandle exeHandle, ExeVo exeVo) {
        this.exeHandle = exeHandle;
        this.exeVo = exeVo;
    }

    @Override
    public void run() {
        exeHandle.beforeExecute(exeVo);
        exeHandle.execute(exeVo);
    }
}
